Blob Storage (1 / 24): As a cloud solutions developer, you're working with an existing codebase that uses Azure's legacy Storage SDK. During a service disruption at the primary data center, you need to configure the Azure Storage client to retry any failed requests on the secondary location using RA-GRS storage.
Which LocationMode option from the Microsoft.Azure.Storage.RetryPolicies.LocationMode
class should you use?
Answer:
LocationMode.PrimaryThenSecondary
allows requests to first try the primary location and then retry at the secondary location if necessary.
This option is part of the legacy Azure Storage SDK. In the newer Azure SDKs (like Azure.Storage.Blobs), the handling of retries and failovers has been reworked and made more efficient.